package com.xiaoq.mongotest;

import java.util.List;

import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Entity;

import com.xiaoq.MongoEntity;

@Entity("test_order_item_with_comment")
public class OrderItemWithCommentEntity  extends MongoEntity {
	private String desc;
	private Double price;
	private int amount;
	private Double total;
	
	
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
	public Double getTotal() {
		return total;
	}
	public void setTotal(Double total) {
		this.total = total;
	}
	public List<CommentVo> getComments() {
		return comments;
	}
	public void setComments(List<CommentVo> comments) {
		this.comments = comments;
	}
	@Embedded
	private List<CommentVo> comments;
	public OrderItemWithCommentEntity() {}
	public OrderItemWithCommentEntity(String desc, Double price, int amount, Double total,
			List<CommentVo> comments) {
		super();
		this.desc = desc;
		this.price = price;
		this.amount = amount;
		this.total = total;
		this.comments = comments;
	}
	
}
